package com.wander.designStructural.proxy.dynamic;
/**
 * @Author : WDYin
 * @Date : 2020/12/10
 * @Desc :
 */
public class Client {
    public static void main(String[] args) {
        Subject1 subject1 = (Subject1) new ProxyHandler().newProxyInstance(new RealSubject1());
        Subject1 subject2 = (Subject1) new ProxyHandler().newProxyInstance(new RealSubject2());
        subject1.operate2();
        subject2.operate4();
    }
}
